package com.gree.kundada.utils;

import com.gree.kundada.model.entity.CurrentUser;

/**
 * ClassName: AuthContextUtil
 * Package: com.gree.vasp.utils
 * Description:
 *
 * @Author zjzzzzzzzz
 * @Create 2024/6/4 16:51
 * @Version 1.0
 */
public class AuthContextUtil {


    private static final ThreadLocal<CurrentUser> threadLocal = new ThreadLocal<>() ;


    public static void set(CurrentUser currentUser) {
        threadLocal.set(currentUser);
    }


    public static CurrentUser get() {
        return threadLocal.get() ;
    }


    public static void remove() {
        threadLocal.remove();
    }

}